package com.mtt.erp.order.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.mtt.erp.common.domain.QueryRequest;
import com.mtt.erp.common.exception.MttErpException;
import com.mtt.erp.order.domain.MbaFile;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mtt.erp.order.dto.MbaFileDto;
import com.mtt.erp.order.dto.MbaFileShipmentDto;
import com.mtt.erp.order.vo.MbaFileVo;
import com.mtt.erp.order.vo.OrderDetailVo;

/**
 * @Description: 订单IService
 * @author guomengzhou
 */
public interface IMbaFileService extends IService<MbaFile> {
    /**
     * @Description: 分页查询订单列表
     * @param request
     * @param mbaFileDto
     * @return
     */
    IPage<MbaFileVo> orderList(QueryRequest request, MbaFileDto mbaFileDto);

    /**
     * @Description:获取订单详情和订单包含的商品列表
     * @param mba00
     * @return
     */
    OrderDetailVo orderDetail(String mba00);

    /**
     * 根据id查询订单信息
     * @param mba00
     * @return
     */
    MbaFileVo getOrderInfo(String mba00);

    /**
     * @Description:订单发货，修改mbaFile
     * @return
     * @param mbaFileShipmentDto
     * @throws MttErpException
     */
    Boolean mbaFileShipment(MbaFileShipmentDto mbaFileShipmentDto) throws MttErpException;

}
